;(function() {
  'use strict';
  angular.module('services.resourcesWatchData.netDevInfoView', [])
    .factory('NetDevInfoViewServer', netDevInfoViewServer);

  function netDevInfoViewServer(Restangular) {
    return{
      resourceQuery : resourceQuery,
      netDevQuery : netDevQuery,
      netDevInfoQuery : netDevInfoQuery
    };

    function resourceQuery(param,callback){
      return Restangular.one('sas/faultLocation/netDevInfoView/resourceTypeQuery').get();
    }

    function netDevQuery(param,callback){
      return Restangular.all('sas/faultLocation/netDevInfoView/netDevQuery').post(param).then(callback);
    }

    function netDevInfoQuery(param,callback){
      return Restangular.all('sas/faultLocation/netDevInfoView/netDevInfoQuery').post(param).then(callback);
    }
  }
  
  netDevInfoViewServer.$inject = ['Restangular'];

})();